package testdao;

import interfaceDAO.IDAOStation;

import java.io.IOException;
import java.util.List;

import dao.DAOStation;
import domain.Station;

public class MainDAOTest {
	public static void main(String[] args) throws IOException {

		IDAOStation daoStation = new DAOStation();

		System.out.println("Loading stations...");
		List<Station> stations = daoStation
				.getStationByName("10042 - POISSONNIERE - ENGHIEN");

		System.out.println("Stations loaded successfuly!");
		System.out.println("stations=" + stations);

		// System.out.println("===============================");
		// JCDecauxQuery query = new JCDecauxQuery();
		// Map<Integer, JCDecauxObject> jcDecauxObjects = query.sendRequest();
		// for (JCDecauxObject item : jcDecauxObjects.values()) {
		// System.out.println(" -> " + item);
		// }
		//
		System.out.println("==================================");
		System.out.println("FIN");
		System.out.println("======================================");
	}
}
